home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / websrvcs / nsISOAPHeaderBlock.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  151 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISOAPHeaderBlock.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISOAPHeaderBlock_h__
  6. #define __gen_nsISOAPHeaderBlock_h__
  7.  
  8.  
  9. #ifndef __gen_nsISOAPBlock_h__
  10. #include "nsISOAPBlock.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMElement; /* forward declaration */
  18.  
  19. class nsIVariant; /* forward declaration */
  20.  
  21. class nsISOAPEncoding; /* forward declaration */
  22.  
  23. class nsISchemaType; /* forward declaration */
  24.  
  25.  
  26. /* starting interface:    nsISOAPHeaderBlock */
  27. #define NS_ISOAPHEADERBLOCK_IID_STR "063d4a4e-1dd2-11b2-a365-cbaf1651f140"
  28.  
  29. #define NS_ISOAPHEADERBLOCK_IID \
  30.   {0x063d4a4e, 0x1dd2, 0x11b2, \
  31.     { 0xa3, 0x65, 0xcb, 0xaf, 0x16, 0x51, 0xf1, 0x40 }}
  32.  
  33. /**
  34.  * This interface encapsulates an arbitrary header block to be used
  35.  * by the soap serialization or protocol.  See the description of the
  36.  * nsISOAPBlock interface for information on how the basics of this
  37.  * interface works.
  38.  */
  39. class NS_NO_VTABLE nsISOAPHeaderBlock : public nsISOAPBlock {
  40.  public: 
  41.  
  42.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOAPHEADERBLOCK_IID)
  43.  
  44.   /**
  45.    * The actor URI of the header block.  If element is set,
  46.    *   then this is a computed value.  If this is modified,
  47.    *   then element  is set to null and all attributes computed 
  48.    *   from element revert to previous uncomputed values.
  49.    */
  50.   /* attribute AString actorURI; */
  51.   NS_IMETHOD GetActorURI(nsAString & aActorURI) = 0;
  52.   NS_IMETHOD SetActorURI(const nsAString & aActorURI) = 0;
  53.  
  54.   /**
  55.    * Flags that the processor must understand this header.
  56.    *   If element is set, then this is a computed value.
  57.    *   If this is modified, then element is set to null and 
  58.    *   all attributes computed from element revert to
  59.    *   previous uncomputed values.
  60.    */
  61.   /* attribute boolean mustUnderstand; */
  62.   NS_IMETHOD GetMustUnderstand(PRBool *aMustUnderstand) = 0;
  63.   NS_IMETHOD SetMustUnderstand(PRBool aMustUnderstand) = 0;
  64.  
  65. };
  66.  
  67. /* Use this macro when declaring classes that implement this interface. */
  68. #define NS_DECL_NSISOAPHEADERBLOCK \
  69.   NS_IMETHOD GetActorURI(nsAString & aActorURI); \
  70.   NS_IMETHOD SetActorURI(const nsAString & aActorURI); \
  71.   NS_IMETHOD GetMustUnderstand(PRBool *aMustUnderstand); \
  72.   NS_IMETHOD SetMustUnderstand(PRBool aMustUnderstand); 
  73.  
  74. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  75. #define NS_FORWARD_NSISOAPHEADERBLOCK(_to) \
  76.   NS_IMETHOD GetActorURI(nsAString & aActorURI) { return _to GetActorURI(aActorURI); } \
  77.   NS_IMETHOD SetActorURI(const nsAString & aActorURI) { return _to SetActorURI(aActorURI); } \
  78.   NS_IMETHOD GetMustUnderstand(PRBool *aMustUnderstand) { return _to GetMustUnderstand(aMustUnderstand); } \
  79.   NS_IMETHOD SetMustUnderstand(PRBool aMustUnderstand) { return _to SetMustUnderstand(aMustUnderstand); } 
  80.  
  81. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  82. #define NS_FORWARD_SAFE_NSISOAPHEADERBLOCK(_to) \
  83.   NS_IMETHOD GetActorURI(nsAString & aActorURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActorURI(aActorURI); } \
  84.   NS_IMETHOD SetActorURI(const nsAString & aActorURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActorURI(aActorURI); } \
  85.   NS_IMETHOD GetMustUnderstand(PRBool *aMustUnderstand) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMustUnderstand(aMustUnderstand); } \
  86.   NS_IMETHOD SetMustUnderstand(PRBool aMustUnderstand) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMustUnderstand(aMustUnderstand); } 
  87.  
  88. #if 0
  89. /* Use the code below as a template for the implementation class for this interface. */
  90.  
  91. /* Header file */
  92. class nsSOAPHeaderBlock : public nsISOAPHeaderBlock
  93. {
  94. public:
  95.   NS_DECL_ISUPPORTS
  96.   NS_DECL_NSISOAPHEADERBLOCK
  97.  
  98.   nsSOAPHeaderBlock();
  99.  
  100. private:
  101.   ~nsSOAPHeaderBlock();
  102.  
  103. protected:
  104.   /* additional members */
  105. };
  106.  
  107. /* Implementation file */
  108. NS_IMPL_ISUPPORTS1(nsSOAPHeaderBlock, nsISOAPHeaderBlock)
  109.  
  110. nsSOAPHeaderBlock::nsSOAPHeaderBlock()
  111. {
  112.   /* member initializers and constructor code */
  113. }
  114.  
  115. nsSOAPHeaderBlock::~nsSOAPHeaderBlock()
  116. {
  117.   /* destructor code */
  118. }
  119.  
  120. /* attribute AString actorURI; */
  121. NS_IMETHODIMP nsSOAPHeaderBlock::GetActorURI(nsAString & aActorURI)
  122. {
  123.     return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. NS_IMETHODIMP nsSOAPHeaderBlock::SetActorURI(const nsAString & aActorURI)
  126. {
  127.     return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129.  
  130. /* attribute boolean mustUnderstand; */
  131. NS_IMETHODIMP nsSOAPHeaderBlock::GetMustUnderstand(PRBool *aMustUnderstand)
  132. {
  133.     return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. NS_IMETHODIMP nsSOAPHeaderBlock::SetMustUnderstand(PRBool aMustUnderstand)
  136. {
  137.     return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139.  
  140. /* End of implementation class template. */
  141. #endif
  142.  
  143. #define NS_SOAPHEADERBLOCK_CID                        \
  144. { /* 5ad0eace-1dd2-11b2-a260-ff42edcaedb3 */        \
  145.   0x5ad0eace, 0x1dd2, 0x11b2,                       \
  146.  {0xa2, 0x60, 0xff, 0x42, 0xed, 0xca, 0xed, 0xb3} }
  147. #define NS_SOAPHEADERBLOCK_CONTRACTID \
  148. "@mozilla.org/xmlextras/soap/headerblock;1"
  149.  
  150. #endif /* __gen_nsISOAPHeaderBlock_h__ */
  151.